package com.enumm;

public class Test1 {
    public static void main(String[] args) {
        System.out.println(Season.SPRING);
        System.out.println(Season.SUMMER);
        System.out.println(Season.AUTUMN);
        System.out.println(Season.WINTER);

    }
}

class Season{
    private String name;
    private String feature;

    public Season(String name, String feature) {
        this.name = name;
        this.feature = feature;
    }

    public final static Season SPRING=new Season("春天","温暖");
    public final static Season SUMMER=new Season("夏天","炎热");
    public final static Season AUTUMN=new Season("秋天","凉爽");
    public final static Season WINTER=new Season("冬天","寒冷");

    public String getName() {
        return name;
    }

    public String getFeature() {
        return feature;
    }

    @Override
    public String toString() {
        return "Season{" +
                "name='" + name + '\'' +
                ", feature='" + feature + '\'' +
                '}';
    }
}
